package net.xju.dao;

import net.xju.common.utils.JdbcUtilsV1;
import net.xju.entity.User;

import java.sql.Connection;
import java.util.List;

public class UserDao {
    public static List<User> list() {
        Connection connection = JdbcUtilsV1.getConnection();
        String sql = "select * from user";
        List<User> userList = JdbcUtilsV1.executeQuery(connection, User.class, sql);
        return userList;

    }
}
